.mod-deploy.create-deploy1(ng-form name="mirrorsListFrom" ng-class="{'need-valid':needValid.valid}" novalidate)
    .mirror-con
        .mirrror.com-select-con(select-con event-type="focus")
            span.mirror-label 选择镜像
            input.mirror-txt.search-txt.ui-btn-select(placeholder="搜索镜像" ng-model="mirKey")
            i.icon-search
            span.mirror-button
                a.link-safe(ng-click="deployEditIns.addOtherImage()") 其他镜像
            .select-list
                ul
                    li(ng-if="imageFiltered.length===0")
                        a 无相关镜像信息
                    li.select-item(ng-repeat="image in imageFiltered=(deployEditIns.imageList|filter:{'imageName':mirKey})")
                        a(ng-click="deployEditIns.addImage(image)" ng-cloak)
                            | {{image.imageName}}
                            span.txt-prompt.pull-right(ng-bind="image.registry")
    p.nomirror(ng-if="!editConfig.containerDrafts||editConfig.containerDrafts.length===0") 您尚未选择任何镜像。
    .containerdrafts-con
        ul(list-scroll width-offset="150")
            li.nav-option(disabled="true")
                span
                    a.icon-last.to-last
                    a.icon-next.to-next
            li(ng-repeat="image in editConfig.containerDrafts" ng-class="{'active':currentContainerDraft.index===$index,'txt-error':needValid.valid&&mirrorsListFrom['Form'+$index].$invalid}")
                a.link-list(ng-click="currentContainerDraft.index=$index;" ng-bind="image.image")
                a.icon-cancel(ng-click="deleteImage($index);fresh()")
    div(ng-repeat="image in editConfig.containerDrafts" ng-init="formName='Form'+$index;" ng-show="currentContainerDraft.index===$index")
        ng-form.mirror-info-con(role="form" name="{{formName}}")
            ul.com-list-info
                li.has-border
                    span.info-name 镜像仓库
                    .info-content(ng-bind="image.registry")
                li.has-border
                    span.info-name 镜像版本
                    .info-content
                        .com-select-con(select-con)
                            button.ui-btn.ui-btn-white.ui-btn-select(ng-cloak)
                                i.icon-down
                                | {{image.tag || '选择镜像版本'}}
                            ul.select-list
                                li.select-item(ng-repeat="tag in image.tagList")
                                    a(ng-click="deployEditIns.toggleImageTag($parent.$index,tag.tag)")
                                        span(ng-bind="tag.tag")
                                        span.txt-prompt(ng-bind="vmDome.parseDate(tag.createTime)")
                li.has-border
                    span.info-name 运行过程环境变量
                    .info-content
                        table.ui-table-primary.ui-table-mirror(ng-show="image.oldEnv.length!==0")
                            thead
                                tr
                                    th 环境变量名
                                    th 环境变量值
                                    th 描述
                            tbody
                                tr(ng-repeat="env in image.oldEnv")
                                    td(ng-bind="env.key")
                                    td.tb-value
                                        input.ui-input-fill(ng-model="env.value" name="oldEnvValue")
                                    td(ng-bind="env.description")
                        ul.env-list
                            li.line-long(ng-repeat="env in image.newEnv" ng-form name="childForm")
                                input.line-element.ui-input-fill(placeholder="环境变量名" ng-pattern="/^[A-Za-z_][A-Za-z0-9_]*$/" name="key" ng-model="env.key" is-required param1="{{env.value}}" param2="{{env.description}}")
                                input.line-element.next-item.ui-input-fill(placeholder="环境变量值" name="value" ng-model="env.value" is-required param1="{{env.key}}" param2="{{env.description}}")
                                input.line-element.next-item.ui-input-fill(placeholder="描述20字以内" name="description" ng-model="env.description")
                                a.txt-wrap.icon-delete(ng-click="deployEditIns.deleteImageEnv($parent.$index,$index)")
                        span.add-env.line-long(ng-click="deployEditIns.addImageEnv($index)")
                            i.icon-add
                li.has-border
                    span.info-name.tool-align-input 容器大小
                    .info-content
                        | CPU(个)
                        input.ui-input-fill.ui-input-sm(ng-model="image.cpu" name="cpu" ng-pattern="/^(\\d*\\.)?\\d+$/" required)
                        | 内存(MB)
                        input.ui-input-fill.ui-input-sm(ng-model="image.mem" name="mem" ng-pattern="/^(\\d*\\.)?\\d+$/" required)
                        span.tool-inline-error(ng-if="(needValid.valid||mirrorsListFrom[formName].cpu.$dirty)&&mirrorsListFrom[formName].cpu.$invalid||(needValid.valid||mirrorsListFrom[formName].mem.$dirty)&&mirrorsListFrom[formName].mem.$invalid") 请填写数字
                li
                    span.info-name.tool-align-input 健康检查
                    .info-content
                        dome-radio.com-check-con(d-id="{{'checkNONE_'+formName}}" d-value="'NONE'" d-name="healthCheckerType{{formName}}" d-label="None" d-model="image.healthChecker.type")
                        dome-radio.com-check-con(d-id="{{'checkTCP_'+formName}}" d-value="'TCP'" d-name="healthCheckerType{{formName}}" d-disabled="{{editConfig.networkMode=='HOST'}}" d-label="TCP检查" d-model="image.healthChecker.type")
                        dome-radio.com-check-con(d-id="{{'checkHTTP_'+formName}}" d-value="'HTTP'" d-name="healthCheckerType{{formName}}" d-disabled="{{editConfig.networkMode=='HOST'}}" d-label="HTTP检查" d-model="image.healthChecker.type")
                        p.txt-prompt(ng-if="editConfig.networkMode=='HOST'") Host网络模式下不能使用健康检查
                        .line-long(ng-if="image.healthChecker.type=='TCP'||image.healthChecker.type=='HTTP'")
                            span.child-name 检查端口
                            input.ui-input-fill.line-element(placeholder="请输入端口号" name="port" ng-model="image.healthChecker.port" required)
                        span.child-error.txt-error(ng-if="(needValid.valid||mirrorsListFrom[formName].port.$dirty)&&mirrorsListFrom[formName].port.$invalid") 必填
                        .line-long(ng-if="image.healthChecker.type=='TCP'||image.healthChecker.type=='HTTP'")
                            span.child-name 超时时间（s）
                            input.ui-input-fill.line-element(placeholder="超过时间达到规定阈值，则健康检查判定为异常" name="timeout" ng-model="image.healthChecker.timeout" required ng-pattern="/^[1-9]\\d*$/")
                        span.child-error.txt-error(ng-if="(needValid.valid||mirrorsListFrom[formName].timeout.$dirty)&&mirrorsListFrom[formName].timeout.$invalid") 请填写数字
                        .line-long(ng-if="image.healthChecker.type=='TCP'||image.healthChecker.type=='HTTP'")
                            span.child-name 首次检测延迟（s）
                            input.ui-input-fill.line-element(placeholder="容器启动后延迟规定秒数，再开始健康检查" name="delay" ng-model="image.healthChecker.delay" required ng-pattern="/^[1-9]\\d*$/")
                        span.child-error.txt-error(ng-if="(needValid.valid||mirrorsListFrom[formName].delay.$dirty)&&mirrorsListFrom[formName].delay.$invalid") 请填写数字
                        .line-long(ng-if="image.healthChecker.type=='HTTP'")
                            span.child-name 检测URL
                            input.ui-input-fill.line-element(placeholder="请输入URL" name="url" ng-model="image.healthChecker.url" required)
                        span.child-error.txt-error(ng-if="(needValid.valid||mirrorsListFrom[formName].url.$dirty)&&mirrorsListFrom[formName].url.$invalid") 必填
                        .line-long(ng-if="image.healthChecker.type=='HTTP'")
                            span.child-name 允许返回值
                            span.child-txt  200-400(不包含400)
    .com-bottom-option.text-center
        span.com-bottom-option-con
            button.ui-btn.ui-btn-md.ui-btn-bright(ng-click="needValid.valid=true;mirrorsListFrom.$valid&&toNext()") 下一步
            span.txt-error(ng-if="needValid.valid&&mirrorsListFrom.$invalid") 存在不合法数据，请修改后提交！

